import Layout from "@/page/index/index.vue";

const parentPath = "/sysDict"
const dictItemPath = "dictItem"

const paths = {
    itemPath: parentPath + "/" + dictItemPath,
}
const names = {
    pageDictItem: "pageDictItem"
}

const routes = {}
routes.paths = paths
routes.names = names
routes.routes = [
    {
        path: parentPath,
        component: Layout,
        redirect: parentPath + "/" + dictItemPath,
        children: [
            {
                path: dictItemPath + "/:dictCode/:dictName",
                name: names.pageDictItem,
                meta: {
                    props: {
                        labelKey: 'dictName',
                    },
                },

                component: () => import("@/views/sys/dictionary/pageDictItem.vue")
            },
        ]
    },
]
export default routes
